package org.zdc.pivot.wtk.listener;
import org.zdc.pivot.wtk.Component;
import org.zdc.pivot.wtk.IDecorator;

interface IComponentDecoratorListener 
{
	/**
	 * 当组件的装饰器被插入时调用
	 * @param	c
	 * @param	index
	 */
	public function decoratorInserted(c:Component, index:Int):Void;
	
	/**
	 * 当组件在装饰器队列的装饰器被更新时执行
	 * @param	c
	 * @param	index
	 * @param	prevDecorator
	 */
	public function decoratorUpdated(c:Component, index:Int, prevDecorator:IDecorator):Void;
	
	/**
	 * 当组件在装饰器队列的装饰器被删除时执行
	 * @param	c
	 * @param	index
	 * @param	decorators
	 */
	public function decoratorsRemoved(c:Component, index:Int, decorators:Array<IDecorator>):Void;
}